package com.restaurant.application.indexes.couponmanagelist;

import com.nebutown.base.Unit;
import com.nebutown.generation.basictype.UID;
import com.restaurant.application.couponmanage.support.CouponManageData;
import com.restaurant.application.indexes.couponmanagelist.mysql.CouponManageListBean;
import com.restaurant.application.minifacade.data.CardBO;

import java.util.List;

/**
 * @author Administrator
 */
public interface AssistCouponManageList extends Unit {

    /**
     * 基元写入大表单得对象
     *
     * @param uid  基元uid
     * @param data 基元data
     * @return CouponManageListBean
     */
    CouponManageListBean createBean(UID uid, CouponManageData data);

    /**
     * 基元贡献大表单得对象
     *
     * @param uid  基元uid
     * @param data 基元data
     * @param bean CouponManageListBean
     * @return CouponManageListBean
     */
    CouponManageListBean updateBean(UID uid, CouponManageData data, CouponManageListBean bean);

    /**
     * 获取所有可用得优惠券管理
     *
     * @return CouponManageListData list
     */
    List<CardBO> getAllNormal();
}
